interface IPerson {
    name: string,
    age: number,
}

type t1 = "name" | "age" | "height"

type ResType = Extract<t1, "name">

type MyExtract<T, U> = T extends U ? T : never

type ResType2 = MyExtract<t1, "name" | "age">



export { }